package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.field.LinkInfoPojo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/10/22 20:32
 * @desrcption: 获取默认值-数据联动-联动表单的显示字段
 */
@Getter
@Setter
@ToString
public class LinkDisplayFieldDTO extends BaseDTO {

    private static final long serialVersionUID = -7452621793067587440L;
    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.linkDisplayField.appId.NotNull}")
    private Long appId;

    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.linkDisplayField.menuId.NotNull}")
    private Long menuId;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.linkDisplayField.formId.NotNull}")
    private Long formId;

    /**
     * 标签字段类型
     */
    @NotNull(message = "{dto.msg.linkDisplayField.fieldType.NotNull}")
    private Integer fieldType;

    /**
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;

    /**
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;

    /**
     * 线索转换已有客户规则，这边传入attr，判断是否是子表单，因为子表单子字段传过来的是subform_1.text_1
     */
    private String attr;

    private LinkInfoPojo linkInfo;
}
